import Vue from 'vue'
import App from './App'
import store from "./store"
Vue.prototype.$store = store
import uView from 'uview-ui';
Vue.use(uView);
Vue.config.productionTip = false

App.mpType = 'app'

let login = require('uview-ui/libs/mixin/login.js');
Vue.mixin(login)
Vue.prototype.rooturl="http://www.bbs.com";
Vue.prototype.msg=function(title){
 
	  uni.showToast({
	  		title:title,
	  		duration: 2000,
			icon:"none"	
	  })
}


const app = new Vue({
    ...App
})
import httpInterceptor from '@/common/http.interceptor.js'
// 这里需要写在最后，是为了等Vue创建对象完成，引入"app"对象(也即页面的"this"实例)
Vue.use(httpInterceptor, app)
import common from '@/common/common.js'
Vue.use(common,app)
app.$mount()
